<!-- jquery + jquery ui -->
<script type="text/javascript" src="../../includes/jquery.js"></script>
<script type="text/javascript" src="../../includes/jquery-ui-1.8.10.custom.min.js"></script>

<!-- multimedia video -->
<script src="../../ext/jcplayer/AC_RunActiveContent.js" language="javascript"></script>

<!-- default style -->
<link rel="stylesheet" href="../../templates/default/style.css" type="text/css">

<!-- mosaic (div overlay) -->
<link rel="stylesheet" href="../../templates/default/mosaic.css" type="text/css" media="screen" />
<script type="text/javascript" src="../../includes/mosaic.1.0.1.min.js"></script>
<script type="text/javascript">
    jQuery(function($){
        $('.bar').mosaic({
            animation	:   'slide'		//fade or slide
        });
    });
</script>

<!-- jquery simplyscroll -->
<script type="text/javascript" src="../../includes/jquery.simplyscroll-1.0.4.js"></script>
<link rel="stylesheet" href="../../templates/default/rollover-c-corp.css" media="all" type="text/css">

<script type="text/javascript">
(function($) {
    $(function() { //on DOM ready
        $("#scroller").simplyScroll({
            className: 'vert',
            horizontal: false,
            frameRate: 20,
            speed: 5
        });
    });
})(jQuery);

$(document).ready(function(){
    $('#scroller li[id^=clickPoza]').click(function(){
        var id = this.id.replace(/.*(\d+)/, '$1');
        $('#poza' + id).show().siblings().hide();
    });

    var count = $('#meniu_vertical_child > span').size();
    var totalWidth = 0;
    var maxWidth = $('#meniu_vertical_child').width();

    for (var i=1; i<=count; i++){
        var w = $('#link' + i).width();
        totalWidth = totalWidth + w;
    }

    while (totalWidth > maxWidth){
        totalWidth = 0;
        for (var x=1; x<=count; x++){
            var width = $('#link' + x).width();
            var idLink = $('#link' + x);
            var currentFontSize = idLink.css('font-size');
            var currentFontSizeNum = parseFloat(currentFontSize, 10);
            var newFontSize = currentFontSizeNum * 0.95;

            idLink.css('font-size', newFontSize);
            idLink.css('height', '50px');
            totalWidth = totalWidth + width;
        }
    }
});
</script>

<!-- multimedia photo gallery -->
<!--<link rel="stylesheet" type="text/css" href="../../templates/default/style-multimedia-slider.css" />-->
<script type="text/javascript" src="../../includes/script-multimedia-slider.js"></script>

<link rel="stylesheet" href="../../templates/default/nivo-slide-var.css" type="text/css" media="screen" />
<script type="text/javascript" src="../../includes/jquery.nivo.slider.pack.js"></script>
<script type="text/javascript" src="../../includes/jquery.nivo.playpause.js"></script>
<script type="text/javascript">
    $(window).load(function() {
        playPause("sliderVar","160px","-190px", "../../templates/default/images/play.png", "../../templates/default/images/pause.png");

        $('#sliderVar').nivoSlider({
            directionNav:false,
            controlNav:false,
            animSpeed:1000,
            pauseTime:5000,
            beforeChange: function(){},
            afterLoad: function(){$('#sliderVar').data('nivo:vars').stop = true;}
        });
    });
</script>

<script type="text/javascript" src="../../includes/jquery.lightbox-0.5.min.js"></script>
<link rel="stylesheet" type="text/css" href="../../templates/default/jquery.lightbox-0.5.css" media="screen" />
<script type="text/javascript">
$(function() {
$('a.lightbox').lightBox({
    imageLoading:	'../../templates/default/images/lightbox-ico-loading.gif',
    imageBtnPrev:	'../../templates/default/images/lightbox-btn-prev.gif',
    imageBtnNext:	'../../templates/default/images/lightbox-btn-next.gif',
    imageBtnClose:	'../../templates/default/images/lightbox-btn-close.gif',
    imageBlank:		'../../templates/default/images/lightbox-blank.gif'
});
});
</script>